<div align="center"><h1>{$maintitle}</h1></div>
<b>Welcome to {$package}!</b><br />

<br />
<h2>Tests</h2>
<br />
{bazalt->getTextDox assign="textdox"}
{if $textdox|count > 0}
    {foreach from=$textdox item=tests key=key}
        {assign var="showgroup" value="0"}
        {foreach from=$tests item=test key=tname}
        {if $showgroup == 0}
            {if $test != 1}{assign var="showgroup" value="1"}{/if}
        {/if}
        {/foreach}
        <h3{if !$showgroup} class="hiddentest testitem"{/if}>{$key}</h3>
        <ul style="padding-left: 15px" class="menu">
        {foreach from=$tests item=test key=tname}
            <li class="{if $test == 1}testitem todo hiddentest{else}error{/if}">{$tname}</li>
        {/foreach}
        </ul>
    {/foreach}
    <a href="#" onclick="$('.testitem').toggleClass('hiddentest'); $(this).hide(); return false;">Show all tests</a>
    
    <br />
{/if}


{if $coverage != 'none'}
<br />

<h2>Coverage</h2>

<table width="100%">
<tr>
    <td>&nbsp;</td>
    <td width="130" style="text-align: center; font-size: 10px; font-weight: bold;">Methods</td>
    <td width="130" style="text-align: center; font-size: 10px; font-weight: bold;">Lines</td>
</tr>
{*
<tr>
    <td style="text-align: right">
    <strong>Total:</strong>
    </td>
    <td width="130" style="text-align:right;">
        {if $cov_report.total.methods == 0}
        {assign var="procmethods" value="0"}
        {else}
        {math equation="ce / e * 100" ce=$cov_report.total.coveredmethods e=$cov_report.total.methods assign="procmethods"}
        {/if}
        {assign var="pwidth" value=$procmethods/100*120}
        {math equation="120 - x" x=$pwidth|round assign="pwidth"}
        <span class="progressBar {if $procmethods|round >= 80}percentImage1{elseif $procmethods|round <= 30}percentImage4{else}percentImage2{/if}">
            <span class="cov-proc">{$cov_report.total.coveredmethods}/{$cov_report.total.methods} ({$procmethods|round:2}%)</span>
            <img style="width: 120px; height: 12px; background-position: -{$pwidth}px 50%;" src="{$subdir}media/images/percentImage.png"/>
        </span>
    </td>
    <td width="130" style="text-align:right;">
        {if $cov_report.total.statements == 0}
        {assign var="procstatements" value="0"}
        {else}
        {math equation="ce / e * 100" ce=$cov_report.total.coveredstatements e=$cov_report.total.statements assign="procstatements"}
        {/if}
        {assign var="pwidth" value=$procstatements/100*120}
        {math equation="120 - x" x=$pwidth|round assign="pwidth"}
        <span class="progressBar {if $procstatements|round >= 80}percentImage1{elseif $procstatements|round <= 30}percentImage4{else}percentImage2{/if}">
            <span class="cov-proc">{$cov_report.total.coveredstatements}/{$cov_report.total.statements} ({$procstatements|round:2}%)</span>
            <img style="width: 120px; height: 12px; background-position: -{$pwidth}px 50%;" src="{$subdir}media/images/percentImage.png"/>
        </span>
    </td>
</tr>*}
{include file="cov_folder.tpl" items=$cov_report.folders}
</table>
{/if}